package com.ruoyi.management.operation.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.management.operation.ro.GetOperationDetailParam;
import com.ruoyi.management.operation.ro.GetOperationListParam;
import com.ruoyi.management.operation.service.OperationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;


/**
 * 营运信息管理
 * 
 * @author ruoyi
 * @date 2021-12-07
 */
@Api(tags = "营运信息管理")
@RestController
@RequestMapping("/operation")
public class OperationController extends BaseController
{
    @Autowired
    private OperationService operationService;

    @ApiOperation("运营信息列表查询")
    @GetMapping("get-list")
    public TableDataInfo getList(@Valid GetOperationListParam param){
        startPage();
        return getDataTable(operationService.getList(param));
    }

    @ApiOperation("运营信息列表详情")
    @GetMapping("get-list-detail")
    public TableDataInfo getListDetail(@Valid GetOperationDetailParam param){
        startPage();
        return getDataTable(operationService.getListDetail(param));
    }
}
